package com.zygh.policeasset.pojo;

public enum TableType {
    PROJECT("project", "立项审批"),
    TENDER("tender", "招标审批"),
    CONTRACT("contract", "合同审批"),
    COMPLETED("completed", "验收审批"),
    SETTLEMENT("settlement", "结算审计审批"),
    FINALSTATEMENT("final_statement", "决算审计审批"),
    UNITINFORMATION("unit_information", "施工管理信息审批"),
    QRCODEGENERATED("qr_code_generated", "铝制、内场标牌审批"),
    //REPAIRJC("repair_jc", "基础资产报修审批"),
    //REPAIRZN("repair_zn", "智能资产报修审批"),
    REPAIR("repair", "资产报修审批"),
    NOTICEAFFICHE("notice_affiche", "公告通知审批"),
    PROJECTASSETSBUSINESS("project_assets_business", "项目资产审批"),
    PURCHASEASSETSBUSINESS("purchase_assets_business", "采购资产审批"),
    DAILYPROJECT("daily_project", "日常资产审批"),
    CONSTRUCTIONCHANGE("construction_change", "施工变更审批"),

    REPAIRACCEPT("repair_accept", "验收资产审批"),

    ASSETSUPDATE("assets_update", "资产信息修改审批(存放地点、使用人)"),

    PROJECTBUDGETREVIEW("project_budget_review", "项目编制审核审批"),

    PROJECTDESIGN("project_design", "项目设计审批"),

    PROJECTFINALACCOUNTS("project_final_accounts", "项目决算审批"),

    PROJECTSETTLEMENT("project_settlement", "项目结算审批"),

    PROJECTSUPERVISOR("project_supervisor", "项目监理信息审批"),
    ASSETSCHECKUPDATE("assets_check_update", "资产清查贴牌审核"),

    PROJECTBUDGET("project_budget", "项目编制审批");

    private String type;
    private String name;

    TableType(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public static String getName(String name) {
        TableType[] values = values();
        for (TableType c : values) {
            if (c.getName().equals(name)) {
                return c.type;
            }
        }
        return null;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}